using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using DABL;
using WebChart;

public partial class Control_Default : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        ColumnChart pie = new WebChart.ColumnChart();
        pie.ShowLineMarkers = false;
        pie.Fill.Color = System.Drawing.Color.SkyBlue;
        
        
        pie.DataSource = DABL.QuestionnaireController.QuestionTypesGet().Tables[0].DefaultView;
        pie.DataXValueField = "QuestionType";
        pie.DataYValueField = "QuestionTypeID";
        pie.DataBind();

        ChartPoint pts = new ChartPoint("hello",8);
        ColumnChart cp = new ColumnChart();

        
        cp.Data.Add(pts);
        cp.DataBind();
        cp.DataLabels.Visible = true;
        
        

        pie.Shadow.Visible = true;
        pie.DataLabels.Visible = true;
        ChartControl1.Charts.Add(pie);
        
        
        
        
        ChartControl1.Charts.Add(cp);
        ChartControl1.RedrawChart();

        
        

        
        

    }
    protected void ChartControl1_DataBinding(object sender, EventArgs e)
    {
        Response.Write(sender.ToString());
        
    }
}
